//
//  SetTableViewCell.m
//  MountEverestFM
//
//  Created by ChenNing on 15/11/5.
//  Copyright © 2015年 chenn. All rights reserved.
//

#import "SetTableViewCell.h"

@implementation SetTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self=[super initWithStyle:style reuseIdentifier:reuseIdentifier];

    if (self) {
        self.contentView.backgroundColor=[UIColor clearColor];
        self.lable1=[[UILabel alloc]init];
        [self.contentView addSubview:self.lable1];
        
        self.imageV1=[[UIImageView alloc]init];
        [self.contentView addSubview:self.imageV1];
        
//        self.switch1=[[UISwitch alloc]init];
//        [self.contentView addSubview:self.switch1];
        
        self.lable2=[[UILabel alloc]init];
        [self.contentView addSubview:self.lable2];
        
    }
    return self;
}
-(void)layoutSubviews
{
    [super layoutSubviews];
    
    self.imageV1.frame=CGRectMake(FM_Screen_Pts_Width*10, FM_Screen_Pts_Height*10, FM_Screen_Pts_Width*20, FM_Screen_Pts_Height*20);
    
    self.lable1.frame=CGRectMake(FM_Screen_Pts_Width*50, FM_Screen_Pts_Height*5, FM_Screen_Pts_Width*140, self.contentView.bounds.size.height-FM_Screen_Pts_Height*10);
    
//    self.switch1.frame=CGRectMake(self.contentView.bounds.size.width-FM_Screen_Pts_Width*50, FM_Screen_Pts_Height*10, FM_Screen_Pts_Width*40, FM_Screen_Height-FM_Screen_Pts_Height*20);
    
    self.lable2.frame=CGRectMake(self.contentView.bounds.size.width-FM_Screen_Pts_Width*80, FM_Screen_Pts_Height*10, FM_Screen_Pts_Width*80, self.contentView.bounds.size.height-FM_Screen_Pts_Height*20);
    self.lable2.alpha=0.5;
    
    
    
    
}











- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
